package cn.ulc.store.entity.goods;
import cn.ulc.common.constant.enums.AvailableStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import cn.ulc.store.entity.base.BaseModel;
import lombok.NoArgsConstructor;
import org.beetl.sql.core.annotatoin.Table;

import java.util.List;

/*
* 
* gen by Jin 2019-05-28
*/
@Builder(toBuilder = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name="goods_type")
public class GoodsType extends BaseModel {

	/*
	是否是叶子节点
	*/
	private Boolean isLeaf;
	/*
	等级
	*/
	private Integer level;
	private Integer sort;
	private String name;
	private String nodeIdPath;
	private Long parentId;
	private String remark;
	private AvailableStatus status;
	/*
	饮用水、其他商品 饮用水有押金
	*/
	private String type;
	private Long siteId;

	// 透明字段
	List<GoodsType> children;
	private Integer goodsCount;

}
